<?php
/**
 * Patient Signal details view page 2. Used in view action in PatientSignalController.
 *
 * @package   views
 * @subpackage patientSignal
 * @since     1.0
 * @filesource
 */

$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'subject',
		array(
			'name'=>'dateOfBirth',
			'value'=>substr($model->dateOfBirth, 0,7),
		),
		array(
			'label'=>'Age',
			'value'=>$model->ageYear.' Year(s) '.$model->ageMonth.' Month(s)',
		),
		array(
			'name'=>'gender',
			'value'=>$model->gender?'Male':'Female',
		),
		array(
			'label'=>'Disorder',
			'value'=>$model->disorderId?$model->disorder->name:null,
		),
		'severity',
		'recordingTime',
		'pastDiagnosticHistory',
	),
));